home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000274_news@newsmaster….columbia.edu _Fri Nov 6 15:30:56 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA21945
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 6 Nov 1998 15:30:52 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA15184
  7.     for kermit.misc@watsun; Fri, 6 Nov 1998 15:30:51 -0500 (EST)
  8. Path: news.columbia.edu!panix!howland.erols.net!dca1-hub1.news.digex.net!digex!nntp.primenet.com!news.primenet.com!monty
  9. From: Jim Monty <monty@primenet.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: sending variables on the command line
  12. Date: 6 Nov 1998 20:30:34 GMT
  13. Organization: Primenet
  14. Lines: 52
  15. Message-ID: <71vm9a$cqn$1@nnrp03.primenet.com>
  16. References: <71810c$31v$1@supernews.com> <718456$a8l$1@apakabar.cc.columbia.edu> <71b0p0$idm$1@supernews.com> <71g2db$l03$1@post.servtech.com> <71ksse$6oh$1@apakabar.cc.columbia.edu>
  17. NNTP-Posting-Host: usr01.primenet.com
  18. X-Complaints-To: abuse@globalcenter.net
  19. X-Posted-By: monty@206.165.6.201 (monty)
  20. Xref: news.columbia.edu comp.protocols.kermit.misc:9479
  21.  
  22. Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  23. > <rchandra.spamguard@spamguard.letter.com> wrote:
  24. > : Could you elaborate on the decision to use "="? I always thought
  25. > : "--" would have been better, as many programs (at least in *IX
  26. > : environments) use "--" to separate program options from program
  27. > : arguments (that would have been my choice).
  28. >
  29. > No special reason. We (I) did this quite a while ago and had never seen
  30. > any guidelines on this. Do you have a reference?
  31.  
  32. See URL <http://www.opengroup.org/onlinepubs/7908799/xbd/utilconv.html#usg>:
  33.  
  34.                  The Single UNIX Specification, Version 2
  35.                       Copyright 1997 The Open Group
  36.      _________________________________________________________________
  37.  
  38.                             Utility Conventions
  39.  
  40.    [...]
  41.  
  42.    Utility Syntax Guidelines
  43.  
  44.    The following guidelines are established for the naming of
  45.    utilities and for the specification of options, option-arguments
  46.    and operands.
  47.  
  48.    [...]
  49.  
  50.    Guideline  9:
  51.           All options should precede operands on the command line.
  52.  
  53.    Guideline 10:
  54.           The argument -- should be accepted as a delimiter indicating
  55.           the end of options. Any following arguments should be treated
  56.           as operands, even if they begin with the "-" character. The --
  57.           argument should not be used as an option or as an operand.
  58.           Applications calling any utility with a first operand starting
  59.           with - should usually specify --, as indicated by Guideline 10,
  60.           to mark the end of the options. This is true even if the
  61.           SYNOPSIS in the XCU specification does not specify any options;
  62.           implementations may provide options as extensions to the XCU
  63.           specification. The standard utilities that do not support
  64.           Guideline 10 indicate that fact in the OPTIONS section of the
  65.           utility description.
  66.  
  67.    [...]
  68.  
  69.  
  70. -- 
  71. Jim Monty
  72. monty@primenet.com
  73. Tempe, Arizona USA